home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / missioncandy.swf / scripts / frame_3 / DoAction.as
Text File  |  2008-03-17  |  282b  |  11 lines

  1. if(_root.getBytesLoaded() >= _root.getBytesTotal())
  2. {
  3.    gotoAndPlay(5);
  4. }
  5. else
  6. {
  7.    percent = Math.round(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
  8.    _root.cake.gotoAndStop(percent);
  9. }
  10. trace(Math.round(_root.getBytesLoaded() / _root.getBytesTotal() * 100));
  11.